package com.fsnip.dubbo.demo.impl;

import java.util.ArrayList;
import java.util.List;

import com.fsnip.dubbo.demo.DemoService;

public class DemoServiceImpl implements DemoService {

	public List<String> getPermissions(Long id) {
		List<String> demo = new ArrayList<String>();
        demo.add(String.format("Permission_%d", id - 1));
        demo.add(String.format("Permission_%d", id));
        demo.add(String.format("Permission_%d", id + 1));
        return demo;
	}

	@Override
	public String getUserName(String name) {
		
		return name;
	}

}
